package com.chaopei.consumer_feign.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Author yws
 * @Date 2022/4/27 14:23
 */
@Component//当异常发生的时候，由熔断器自动注入此依赖，并调用对应的方法
public class FeignServiceImpl implements FeignSevice {
    public String getInfo(String info) {
        return "别着急，已经保护了；";
    }
}
